package patterns.actions.interpreter.arithmetic;

public class Multiply implements ArithmeticExpression {
	ArithmeticExpression left;
	ArithmeticExpression right;

	Multiply(ArithmeticExpression left, ArithmeticExpression right) {
		this.left = left;
		this.right = right;
	}

	@Override
	public int interpret(Variables var) {
		return right.interpret(var)*right.interpret(var);
	}

}
